how to get value of specific row of datatable c#

65

datatable get row data -

var table = $('#example').DataTable();

$('#example tbody').on( 'click', 'tr', function () {
    console.log( table.row( this ).data() );
} );

how to get value of specific row of datatable c# -

double otherNumber = dt.Rows[i].Field<double>("DoubleColumn");

get row data in datatable -

Javascript12345var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () {    console.log( table.row( this ).data() );} );

Comments

Submit
0 Comments